package utils;

/**
 * @author web
 * 轮盘赌法
 */
public class Roulette {
    public static int getResult(double[] inputs) {
        double biggest = 0;
        int index = 0;
        for (int i = 0; i < inputs.length; i++) {
            if (inputs[i] > biggest) {
                biggest = inputs[i];
                index = i;
            }
        }
        return index;
    }
}
